#{extends 'orgLead.html' /} #{ifErrors} ${error} #{/ifErrors} 
#{if isOrgLead}
	#{if allOrganizersInAllDepartments}
			<h3>Restrict Organizer from specific Topic:</h3>
<table>
	<tr>
		<td><b>User</b>
		</td>
		<td><b>Organizer in</b>
		</td>
		<td><b>Topics</b>
	</tr>
	<tr>
	#{list items : allOrganizersInAllDepartments, as: 'organizer'}
	<form action = "doRestrictOrganizerFromTopic">
		<td><input type = "text" disabled="disabled" value = "${organizer.user.nickName}">
		<input type = "hidden" name = "userId" value = "${organizer.user.id}">
		</td>
		<td><input type = "text" disabled="disabled" value = "${organizer.department.name}">
		</td>
		<td>
		<select name = "topicId">
		<option value = "0">Select Topic</option>
		#{list items: organizer.department.topics, as :'topic'}
		<option value = "${topic.id}">${topic.title}</option>
		#{/list}
		</select> 
		</td>
		<td><input type = "submit" value = "Restrict"></a>
		</td>
		
	</tr>
	</form>	
	#{/list}
	#{/if}
	#{else}
	No Organizers in ${org.name}
	#{/else}
	<tr>
		
	</tr>
	
</table>
		 <span style="color: #c00" class="error"> #{error 'message' /}</span>
#{/if} #{else} You are Not Authorized to Assign roles #{/else}
<br>
<a href="@{Application.showOrg(org.id)}">Back to ${org.name}</a>